package com.bwie.controller;

import com.bwie.pojo.TbProdInfo;
import com.bwie.service.TbProdInfoService;
import com.bwie.utils.Result;
import com.bwie.vo.PageInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @projectName: server-2211a-shop
 * @package: com.bwie.controller
 * @className: ProdInfoController
 * @author: 杨珂
 * @description: TODO
 * @date: 2025/5/29 14:13
 * @version: 1.0
 */
@RestController
@RequestMapping("/shop/prodInfo")
public class ProdInfoController {

    @Autowired
    TbProdInfoService tbProdInfoService;


    @PostMapping("/getProdInfoList")
    public Result getProdInfoList(@RequestBody PageInfoVo pageInfoVo) {
        return tbProdInfoService.getProdInfoList(pageInfoVo);
    }
}
